// 验证规则
const rules = {
  name: [
    {
      required: true,
      message: '用户名是必传的~',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{5,10}$/,
      message: '用户名必须是5~10个父母或者数组',
      trigger: 'blur'
    }
  ],
  password: [
    {
      required: true,
      message: '密码是必传的~',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{3,16}$/,
      message: '密码必须是3~16位以上的字母个父母或者数组',
      trigger: 'blur'
    }
  ]
};

export default { rules };
